package cate.game.play.skill.passive.talent;

import cate.common.table.d.GDAttr;
import cate.game.attr.FightAttr;
import cate.game.play.config.PlayCfgArgs;
import cate.game.play.proce.action.ctx.ActionCtx;
import cate.game.play.skill.passive.PassiveHandler;

/**
 *战斗中速度额外提升(15%+60+英雄等级*0.35)点
 */
public class 敏捷PH extends PassiveHandler {

	private double 等级系数;

	//等级系数=3500
	@Override
	public void parse(String code) {
		PlayCfgArgs args = new PlayCfgArgs(code);
		等级系数 = args.getWDouble("等级系数", 0d);
	}

	@Override
	public void onFirstEnter(ActionCtx action) {
		skill.owner.attr.addAttr(new FightAttr(GDAttr.SPEED, skill.owner.getLevel() * 等级系数));
	}
}
